import request from "./request"
import qs from "qs"
//精品推荐的接口
export const GetjingpingData = () => request.get('/products/recommend')
//热门兑换的接口
export const GetHotData = () => request.get('/products/hot')
//验证码的接口
export const GetCodeapi = (params) => request.post('/sendSMS', qs.stringify(params))
//登录成功的接口
export const PostCodeapi = (params) => request.post('/phoneRegin', qs.stringify(params))
//获取用户信息
export const getUserInfoApi = () => request.get("/shop/userProfiles")
//全部商品的接口
export const getProdectsApi = () => request.get("/products")